package com.jinx.excel;

import lombok.Data;

import java.util.Arrays;

@Data
public class DataFrame {

    private String[][] df;

    public DataFrame(String[][] df) {
        this.df = df;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        String separator = System.lineSeparator();
        for (String[] arr : df) {
            sb.append(Arrays.toString(arr)).append(separator);
        }
        sb.deleteCharAt(sb.length() - 1);
        return sb.toString();
    }
}
